/*
** xmalloc.c for mylib in /home/goupil_r//Tek2Ed/Minishell1
**
** Made by robin goupil
** Login   <goupil_r@epitech.net>
**
** Started on  Wed Nov  7 16:18:11 2012 robin goupil
** Last update Wed Nov  7 16:20:36 2012 robin goupil
*/

#include <stdlib.h>

void		*xmalloc(int size)
{
  void		*ptr;

  ptr = malloc(size);
  my_memset(ptr, 0, size);
  if (ptr != NULL)
    return (ptr);
  else
    {
      write(2, "Can't malloc", 12);
      exit(EXIT_FAILURE);
    }
}
